home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2940 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: oxy.rust.net!usenet
  2. From: ebennett@rust.net
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: bc4.0, Windows, Cursor
  5. Date: Sat, 20 Jan 1996 22:52:31 GMT
  6. Organization: Rust Net - High Speed Internet in Detroit  810-642-2276
  7. Message-ID: <4drh4q$1i2@oxy.rust.net>
  8. References: <4dpiba$gij@oxy.rust.net> <4dqink$sge@news1.usa.pipeline.com>
  9. NNTP-Posting-Host: liv-26.rust.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. grantp@usa.pipeline.com(Pete) wrote:
  13.  
  14. >Another (and often a better) way is to capture the mouse, 
  15. >something like: 
  16. >WARNING Untested code using WinAPI -- OWL and MFC have 
  17. >equivalent methods. 
  18. >  ::SetCursor(hWnd, IDC_WAIT); 
  19. >  ::SetCapture(hWnd); 
  20. >  ..... do your stufffff 
  21. >  ::ReleaseCapture(); 
  22. >Of course, ReleaseCapture can be in a message response function 
  23. >so that you can process other windows messages while the 
  24. >hourglass remains in effect. 
  25.  
  26. Yes, I had forgotten about this.  Thanks for the reminder.
  27.  
  28. Of course, this has the downside that the mouse cursor is now always
  29. the busy cursor (until swiched back to the normal cursor) regardless
  30. of what window the cursor is actually over.  This is sometimes
  31. desireable, and sometimes not.  Depends on the application.
  32.  
  33. Earl
  34.  
  35.  
  36.